import request from '@/utils/request'

export function getOne() {
  return request({
    url: '/course/one',
    method: 'get',
  })
}

export function getTow(data) {
  return request({
    url: '/course/tow/'+data,
    method: 'get',
  })
}
export function getTeacher() {
  return request({
    url: '/course/teacher',
    method: 'get',
  })
}
export function getseave(data) {
  return request({
    url: '/course/create',
    method: 'post',
    data
  })
}
export function getPage(data) {
  return request({
    url: '/course/page',
    method: 'post',
    data
  })
}
export function gethuixian(data) {
  return request({
    url: '/course/huixian/'+data,
    method: 'get',
  })
}
export function getdel(data) {
  return request({
    url: '/course/delete/'+data,
    method: 'get',
  })
}


export function getpublic(data) {
  return request({
    url: '/course/public/'+data,
    method: 'get',
  })
}
export function getfabu(data) {
  return request({
    url: '/course/fabu/'+data,
    method: 'get',
  })
}

